/**
 * 
 */
package de.gee.erep.shared.entities.citizen;

import java.io.Serializable;

/**
 * @author Matthew Gee created: 07.05.2011
 */
public class CitizenDetailId implements Serializable {

	/***/
	private static final long serialVersionUID = 1L;
	/** the citizenDetailId. */
	private String id;

	@SuppressWarnings("unused")
	private CitizenDetailId() {
	}

	/**
	 * 
	 * @param id
	 *            id
	 */
	public CitizenDetailId(final String id) {
		this.id = id;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public final String toString() {
		return "CitDetId: " + id;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public final boolean equals(final Object obj) {
		if (obj == this) {
			return true;
		}
		if (obj instanceof CitizenDetailId) {
			return this.id.equals(((CitizenDetailId) obj).id);
		}
		return false;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public final int hashCode() {
		return id.hashCode();
	}

}
